package com.jokerpan.project.service;

import com.jokerpan.project.commons.ActionResult;
import com.jokerpan.project.entity.Blogs;

import java.util.List;
import java.util.Map;

/**
 * @author jokerpan
 */
public interface BlogsService {

    Map<String, Object> queryList(Blogs blogs);

    List<Blogs> queryByUserId(Blogs blogs);

    Blogs queryById(Integer id);

    Blogs add(Blogs blogs);

    ActionResult update(Blogs blogs) throws Exception;

    ActionResult deleteById(Integer id);
}
